SG_Security\Sg_2fa\Sg_2fa B

Total Complexity 92
Dependencies 4
Dependents 5
Total lines 930
Lines of code 438
Logical lines of code 188
Comment lines 403
Methods 34
Properties 2

Methods 34

Method Rating Maintainability Complexity Lines of code
validate_2fa_login()
A
46 8 37
validate_2fabc_login()
S
50 7 28
init_2fa()
S
51 5 29
load_form()
S
55 5 20
enable_2fa()
S
57 4 18
validate_2fa_cookie()
S
60 4 14
verify_2fa()
S
60 4 14
maybe_redirect_to_login()
S
53 3 24
reset_user_2fa()
S
56 3 19
interim_check()
S
58 3 15
get_args_for_template()
S
62 4 10
validate_backup_login()
S
61 3 13
get_auth_user()
S
62 3 11
show_profile_security()
S
64 3 9
logout()
S
63 3 10
maybe_add_additional_backup_codes()
S
61 2 14
show_backup_codes_notice()
S
61 2 13
load_backup_codes_form()
S
61 2 13
generate_user_qr()
S
62 2 12
generate_user_backup_codes()
S
63 2 11
generate_user_secret()
S
64 2 11
check_for_users_using_2fa()
S
56 1 21
set_2fa_cookie()
S
62 2 10
handle_option_change()
S
74 2 5
show_qr_backup_code_used()
S
63 2 10
show_backup_codes()
S
65 2 9
get_instance()
S
71 2 6
enable_2fa_for_user()
S
74 1 5
check_authentication_code()
S
74 1 4
get_2fa_cookie_data()
S
69 1 6
generate_qr_code()
S
71 1 5
dismiss_backup_codes_notice()
S
75 1 4
get_2fa_user_roles()
S
75 1 4
__construct()
S
76 1 4